package com.gtw.modules.dao;

import com.gtw.modules.entity.TbCategory;
import com.gtw.modules.entity.TbIntegral;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 积分数据
 */
@Mapper
@Repository
public interface TbIntegralDao extends BaseDao<TbIntegral> {

    int deleteByPrimaryKey(Integer id);

    int insert(TbIntegral record);

    int insertSelective(TbIntegral record);

    TbIntegral selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TbIntegral record);

    int updateByPrimaryKey(TbIntegral record);

    /**
     * 查询所有
     *
     * @return
     */
    List<TbIntegral> findAll(int type);

}